/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package entities;

import java.io.Serializable;



/**
 *
 * @author PabloSebastian
 */
class SupplierXmaterialPK implements Serializable {  
  
    private int supplierindentification;   
    private String typematerial;

    public SupplierXmaterialPK(int supplierindentification, String typematerial) {
        this.supplierindentification = supplierindentification;
        this.typematerial = typematerial;
    }

    public int getSupplierindentification() {
        return supplierindentification;
    }

    public void setSupplierindentification(int supplierindentification) {
        this.supplierindentification = supplierindentification;
    }

    public String getTypematerial() {
        return typematerial;
    }

    public void setTypematerial(String typematerial) {
        this.typematerial = typematerial;
    }

    @Override
    public int hashCode() {
        int hash = 7;
        hash = 53 * hash + this.supplierindentification;
        hash = 53 * hash + (this.typematerial != null ? this.typematerial.hashCode() : 0);
        return hash;
    }
    


    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof SupplierXmaterialPK)) {
            return false;
        }
        SupplierXmaterialPK other = (SupplierXmaterialPK) object;
        if (this.supplierindentification != other.supplierindentification) {
            return false;
        }
        if (!this.typematerial.equals(other.typematerial)) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "entities.SupplierXmaterialPK[ supplierindentification=" + supplierindentification + ", typematerial=" + typematerial + " ]";
    }
}
